package com.openatc.agent.service;

import com.google.gson.JsonObject;
import com.openatc.agent.model.FaultRange;
import com.openatc.agent.resmodel.PageOR;
import com.openatc.comm.data.MessageData;

import java.util.List;

/**
 * @author ：panleilei
 * @description
 * @modified By：
 * @version:
 * @date ：Created in 2023/3/13 15:17
 */
public interface FaultService {
    List<String> getAgentidListByUserRole();

    MessageData filterMsg(MessageData msg);

    void processFaultMessage(MessageData msg);

    /**
     * 按条件分页查询故障记录
     * @param faultRange
     * @return
     */
    PageOR<JsonObject> getFaultPageOR(FaultRange faultRange);
}
